[NTG-context] Re: Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread skrantajanneman
It does not highlight e.g \starttext keyword by default. The colorscheme seems adapted to LaTeX mode so I managed to fix this now for all \start - \stop commands with this code put in ~/.emacs.d/init.el (add-hook ’ConTeXt-mode-hook (lambda () (font-lock-add-keywords nil

[NTG-context] Re: Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread Henning Hraban Ramm
Am 19.07.23 um 15:38 schrieb Jan-Erik Hägglöf: Dear All! I've been using emacs AUCTEX for quite a while and found it very convenient to work with. One issue is the lack of syntax highlighting. https://wiki.contextgarden.net/Text_Editors says, Emacs has ConTeXt support including syntax

[NTG-context] Custom highlight ConTeXt syntax in AUCTEX

2023-07-19 Thread Jan-Erik Hägglöf
-lock-add-keywords nil '(("\\(starttext\\)\\>" 1 font-lock-warning-face t) ("\\(stoptext\\)\\>" 1 font-lock-warning-face t) and it seems to highlight the start-stop text keyword. So my q

[NTG-context] Bug in generating the highlight colour in the rules-mkiv document

2020-12-06 Thread Ivan Čukić
Hi all, When compiling the rules-mkiv.tex (context/sources/general/manuals/rules) file, the highlight lines that use mp graphics are rendered in black instead of the colour defined by the file. This is visible on the three test sentences on the top of the third page "test test me and

[NTG-context] vim \page highlight

2018-09-20 Thread Damien Thiriet
Hello list, Do you know what should I add to my ftplugin/context.vim to have \page highlighted when using ViM ? I tried to understand context.vim color syntax but this is magic to me (mapping is ok, but offtopic). Thanks, Damien Thiriet

Re: [NTG-context] context sensitive highlight styles

2017-08-17 Thread Wolfgang Schuster
Henning Hraban Ramm 16. August 2017 um 17:47 In my current project, section titles are typeset in SansBold while the body text (and that of the ToC) is roman. How can I define \definehighlight[emph], so that I get SansBoldItalic in titles and SerifItalic in body

Re: [NTG-context] context sensitive highlight styles

2017-08-17 Thread Henning Hraban Ramm
Am 2017-08-16 um 18:09 schrieb Pablo Rodriguez : > On 08/16/2017 05:47 PM, Henning Hraban Ramm wrote: >> In my current project, section titles are typeset in SansBold while >> the body text (and that of the ToC) is roman. >> >> How can I define \definehighlight[emph], so that I get

Re: [NTG-context] context sensitive highlight styles

2017-08-16 Thread Pablo Rodriguez
On 08/16/2017 05:47 PM, Henning Hraban Ramm wrote: > In my current project, section titles are typeset in SansBold while > the body text (and that of the ToC) is roman. > > How can I define \definehighlight[emph], so that I get > SansBoldItalic in titles and SerifItalic in body text and ToC?

[NTG-context] context sensitive highlight styles

2017-08-16 Thread Henning Hraban Ramm
In my current project, section titles are typeset in SansBold while the body text (and that of the ToC) is roman. How can I define \definehighlight[emph], so that I get SansBoldItalic in titles and SerifItalic in body text and ToC? (Body text is not a problem.) MNWE:

Re: [NTG-context] How to embed formatting commands into the syntax highlight code generated by scite module?

2016-04-13 Thread 李延瑞
2016-04-12 10:24 GMT+08:00 Aditya Mahajan : > > > i want to embed some formatting commands into code highlighted with > scite or vim module, but i do not find its option like "escape=yes". Is > there a way to do it? > > > > With the vim module, `escape=yes` should work in

Re: [NTG-context] How to embed formatting commands into the syntax highlight code generated by scite module?

2016-04-11 Thread Aditya Mahajan
> i want to embed some formatting commands into code highlighted with scite or > vim module, but i do not find its option like "escape=yes". Is there a way to > do it? > With the vim module, `escape=yes` should work in the comment region. See the documentation:

[NTG-context] How to embed formatting commands into the syntax highlight code generated by scite module?

2016-04-11 Thread 李延瑞
Hi, i want to embed some formatting commands into code highlighted with scite or vim module, but i do not find its option like "escape=yes". Is there a way to do it? -- Best regards, Li Yanrui (李延瑞) ___ If your

Re: [NTG-context] Tikz backgrounds (was Re: Highlight current chapter in list)

2012-11-09 Thread Hans Hagen
On 11/9/2012 1:43 AM, Aditya Mahajan wrote: \externalfigure [cow] [frame=off, frameoffset=5pt, backgroundoffset=frame, background=decoration, decoration={coil, amplitude=4pt, segment length=5pt}] how about a namespace: decoration:spec={coil, amplitude=4pt, segment length=5pt}]

Re: [NTG-context] Highlight current chapter in list

2012-11-09 Thread Sietse Brouwer
Hans wrote: the next beta has: \namedstructureheadlocation{name} so that you can compare \currentlistentrylocation with \namedstructureheadlocation{chapter} (todo: also store locations elsewhere?) Best document this before we forget about it. Is this a good description of the command's

Re: [NTG-context] Highlight current chapter in list

2012-11-09 Thread Hans Hagen
On 11/9/2012 5:53 PM, Sietse Brouwer wrote: Hans wrote: the next beta has: \namedstructureheadlocation{name} so that you can compare \currentlistentrylocation with \namedstructureheadlocation{chapter} (todo: also store locations elsewhere?) Best document this before we forget about it.

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Wolfgang Schuster
Am 08.11.2012 um 00:29 schrieb Marco Patzer home...@lavabit.com: Hi! How do I highlight the current chapter in the table of contents? The TOC is displayed on each page. For illustration I misused the interaction colour, which of course only works for the first page of a chapter

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Wolfgang Schuster: Hi Wolfgang! \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative [highlight] [renderingsetup=list:highlight] I like the flexibility

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 11:06 AM, Marco Patzer wrote: 2012-11-08 Wolfgang Schuster: Hi Wolfgang! \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative [highlight] [renderingsetup

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 12:06 PM, Hans Hagen wrote: On 11/8/2012 11:06 AM, Marco Patzer wrote: 2012-11-08 Wolfgang Schuster: Hi Wolfgang! \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Hans Hagen: the next beta has: \namedstructureheadlocation{name} so that you can compare \currentlistentrylocation with \namedstructureheadlocation{chapter} Thanks Hans. Best document this before we forget about it. I assume that's my part, right? I'll extend or

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Marco Patzer: Best document this before we forget about it. I assume that's my part, right? I'll extend or add a wiki page the weekend after the beta is released. http://wiki.contextgarden.net/Command/definelistalternative Marco

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 6:32 PM, Marco Patzer wrote: 2012-11-08 Marco Patzer: Best document this before we forget about it. I assume that's my part, right? I'll extend or add a wiki page the weekend after the beta is released. http://wiki.contextgarden.net/Command/definelistalternative fyi: more

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Wolfgang Schuster: \setupheadertexts [\setups{headlist}] \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative [highlight] [renderingsetup=list:highlight] Why

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
] [background=layer:chapter] \setupbackgrounds [page] [background=layer:chapter, setups=setups:headlayer] \setlayer [layer:chapter] {\placelist [chapter] [alternative=f, criterium=all]}%% works %% {\placelist [chapter] [alternative=highlight, criterium=all]} %% fails

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Wolfgang Schuster
Am 08.11.2012 um 22:37 schrieb Marco Patzer home...@lavabit.com: 2012-11-08 Wolfgang Schuster: \setupheadertexts [\setups{headlist}] \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 10:48 PM, Wolfgang Schuster wrote: Am 08.11.2012 um 22:37 schrieb Marco Patzer home...@lavabit.com: 2012-11-08 Wolfgang Schuster: \setupheadertexts [\setups{headlist}] \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight

[NTG-context] Tikz backgrounds (was Re: Highlight current chapter in list)

2012-11-08 Thread Aditya Mahajan
On Thu, 8 Nov 2012, Hans Hagen wrote: (just to illustrate that an overlay can be used for anything) This prompted me to finish testing what I had been thinking about for a while. In most cases, metapost is sufficient for drawing backgrounds, but occasionally using tikz is nicer. For

[NTG-context] Highlight current chapter in list

2012-11-07 Thread Marco Patzer
Hi! How do I highlight the current chapter in the table of contents? The TOC is displayed on each page. For illustration I misused the interaction colour, which of course only works for the first page of a chapter. \setupheadertexts [\setups{headlist}] \startsetups [headlist

Re: [NTG-context] highlight problems on xml export

2011-11-08 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes: On 7-11-2011 17:48, Marco Pessotto wrote: Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the/highlight is at the edge of the paper, the space is eaten. Hacky workaround follows: i rewrote

Re: [NTG-context] Missing break/ while exporting to xml before highlight

2011-11-07 Thread Hans Hagen
On 7-11-2011 08:53, Marco wrote: Hans Hagenpra...@wxs.nl writes: On 6-11-2011 21:38, Marco Pessotto wrote: Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwantedbreak/: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic

Re: [NTG-context] highlight problems on xml export (Was: Missing break/ while exporting to xml before highlight)

2011-11-07 Thread Marco Pessotto
-- !-- context version : 2011.11.04 14:15 -- !-- exporter version : 0.30 -- document language=en file=prova date=Mon Nov 7 09:32:00 2011 context=2011.11.04 14:15 version=0.30 xmlns:m=http://www.w3.org/1998/Math/MathML; paragraphPublished on highlight detail=emphDissonanze

Re: [NTG-context] highlight problems on xml export [hacky workaround included]

2011-11-07 Thread Marco Pessotto
Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the /highlight is at the edge of the paper, the space is eaten. Hacky workaround follows: %% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \startmode

Re: [NTG-context] highlight problems on xml export [hacky workaround included]

2011-11-07 Thread Aditya Mahajan
On Mon, 7 Nov 2011, Marco Pessotto wrote: So, my impression is that for exporting the modal compilation is not an option. So far, that has been my impression as well. I need a lot of tweaks to get the right XML output (and I also need (multiple) PDF output). I have set a separate mode for

Re: [NTG-context] highlight problems on xml export [hacky workaround included]

2011-11-07 Thread Marco Pessotto
Aditya Mahajan adit...@umich.edu writes: TeX does finite precision arithematics, so infinity is not possible. But you can set paper width (and paper height) to \maxdimen, which is the maximum dimension TeX can handle. \definepapersize[max][paperwidth=\maxdimen, paperheight=\maxdimen]

Re: [NTG-context] highlight problems on xml export [hacky workaround included]

2011-11-07 Thread Hans Hagen
On 7-11-2011 17:48, Marco Pessotto wrote: Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the/highlight is at the edge of the paper, the space is eaten. Hacky workaround follows: i rewrote some of the 'heuristics' so best test

Re: [NTG-context] highlight problems on xml export [hacky workaround included]

2011-11-07 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes: On 7-11-2011 17:48, Marco Pessotto wrote: Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the/highlight is at the edge of the paper, the space is eaten. Hacky workaround follows: i rewrote

[NTG-context] Missing break/ while exporting to xml before highlight

2011-11-06 Thread Marco Pessotto
/Math/MathML; Hey, hello! highlight detail=emphHello world!/highlight /document Best regards -- Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Missing break/ while exporting to xml before highlight

2011-11-06 Thread Hans Hagen
On 6-11-2011 21:38, Marco Pessotto wrote: Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwantedbreak/: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \section{test} \emph{Hello} world! \stoptext

Re: [NTG-context] Missing break/ while exporting to xml before highlight

2011-11-06 Thread Marco
Hans Hagen pra...@wxs.nl writes: On 6-11-2011 21:38, Marco Pessotto wrote: Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwantedbreak/: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \section{test

[NTG-context] highlight VB typesetting

2008-10-06 Thread Zhaopeng Xing
Hi, I want to type a VB code file named vba.bas in context. After read the manual, the following codes seems not working well for me. Any suggestion? There are two features desired: language-specific color typing and small style. Thanks. \definetyping[vb]

Re: [NTG-context] Highlight changes

2008-07-20 Thread John Devereux
Peter Münster [EMAIL PROTECTED] writes: On Sat, Jul 19 2008, John Devereux wrote: I am still finding errors in the result. Some of these are due to lines commented out with a leading % sign. In others parameter bracket nesting seems messed up. That's why there are these 2 lines: echo

Re: [NTG-context] Highlight changes

2008-07-19 Thread Peter Münster
On Fri, Jul 18 2008, John Devereux wrote: Thanks, but this (your shell script) did not work well for me - there seem to be too many cases where the diff produces invalid tex code. Did you ever make an extended one? Yes. It's attached. Cheers, Peter -- http://pmrb.free.fr/contact/

Re: [NTG-context] Highlight changes

2008-07-19 Thread John Devereux
Peter Münster [EMAIL PROTECTED] writes: On Fri, Jul 18 2008, John Devereux wrote: Thanks, but this (your shell script) did not work well for me - there seem to be too many cases where the diff produces invalid tex code. Did you ever make an extended one? Yes. It's attached. Cheers, Peter

Re: [NTG-context] Highlight changes

2008-07-18 Thread John Devereux
Peter Münster [EMAIL PROTECTED] writes: On Tue, Jul 15 2008, John Devereux wrote: Is there a way to automatically highlight changes to a document, such that the resulting PDF has markers showing changed areas? Bars in the margin or some such. Or more generally some other way to easily

Re: [NTG-context] Highlight changes

2008-07-16 Thread Olivier Guéry
2008/7/15 John Devereux [EMAIL PROTECTED]: Hi, Is there a way to automatically highlight changes to a document, such that the resulting PDF has markers showing changed areas? Bars in the margin or some such. Or more generally some other way to easily communicate what has been changed (other

[NTG-context] overfull hbox (was: Re: Highlight changes)

2008-07-16 Thread Peter Münster
On Wed, Jul 16 2008, Olivier Guéry wrote: In the same idear, i realy miss something to highlight the « overfull hbox » \version[temporary] \starttext \hsize1pt abcd \stoptext Cheers, Peter -- http://pmrb.free.fr/contact

Re: [NTG-context] overfull hbox (was: Re: Highlight changes)

2008-07-16 Thread Aditya Mahajan
On Wed, 16 Jul 2008, Peter Münster wrote: On Wed, Jul 16 2008, Olivier Guéry wrote: In the same idear, i realy miss something to highlight the « overfull hbox » \version[temporary] \starttext \hsize1pt abcd \stoptext Sometimes, you do not want \version[temporary]. In those cases, I

Re: [NTG-context] overfull hbox (was: Re: Highlight changes)

2008-07-16 Thread Olivier Guéry
Thank's both of you. Exactly what I was looking for. Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com ___ If your question is of interest to others as

[NTG-context] Highlight changes

2008-07-15 Thread John Devereux
Hi, Is there a way to automatically highlight changes to a document, such that the resulting PDF has markers showing changed areas? Bars in the margin or some such. Or more generally some other way to easily communicate what has been changed (other than a diff on the source). -- John Devereux

Re: [NTG-context] Highlight changes

2008-07-15 Thread Peter Münster
On Tue, Jul 15 2008, John Devereux wrote: Is there a way to automatically highlight changes to a document, such that the resulting PDF has markers showing changed areas? Bars in the margin or some such. Or more generally some other way to easily communicate what has been changed (other than